package com.hdax.dm.common.config.api;

import com.hdax.dm.entity.item.DmItem;
import com.hdax.dm.entity.scheduler.DmSchedulerSeat;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public interface SeatControllerApi {

    @PostMapping("/rest/seat")
    DmSchedulerSeat seat(@RequestParam("scheduleId") Long scheduleId,
                               @RequestParam("x") Long x,
                               @RequestParam("y") Long y);

    @PostMapping("/rest/seatUpdate")
    Integer seatUpdate (@RequestBody List<DmSchedulerSeat> seats);

    @PostMapping("/rest/haveSeatUpdate")
    Boolean ishaveSeatUpdate (@RequestParam("status")Long status,@RequestParam("orderNo") String orderNo);
}
